import request from '@/utils/request'
import { create } from 'lodash'

export function changePassword(data) {
  return request({
    url: '/admin/profile/password',
    method: 'post',
    data
  })
}

export function nNotice() {
  return request({
    url: '/admin/profile/nnotice',
    method: 'get'
  })
}

export function listNotice(query) {
  return request({
    url: '/admin/profile/lsnotice',
    method: 'get',
    params: query
  })
}

export function catNotice(data) {
  return request({
    url: '/admin/profile/catnotice',
    method: 'post',
    data
  })
}

export function bcatNotice(data) {
  return request({
    url: '/profile/bcatnotice',
    method: 'post',
    data
  })
}

export function rmotice(data) {
  return request({
    url: '/profile/rmnotice',
    method: 'post',
    data
  })
}

export function brmNotice(data) {
  return request({
    url: '/profile/brmnotice',
    method: 'post',
    data
  })
}


//实名认证

export function realproveCreate(data) {
  return request({
    url: '/box/realprove/create',  //创建一条实名信息 - 无权限管理
    method: 'post',
    data
  })
}


export function fileCreate(data) {
  return request({
    url: '/admin/storage/create',//身份证图片识别接口 - 无权限管理
    method: 'post',
    data
  })
}


export function realpositiveUpdate(data) {
  return request({
    url: '/box/realprove/update',// 修改自己的实名信息 - 无权限管理
    method: 'post',
    data
  })
}


export function province(data) {
  return request({
    url: '/web/region/clist',//省
    method: 'get',
    params: data
  })
}

export function city(data) {
  return request({
    url: '/web/region/list',//市
    method: 'get',
    params: data
  })
}

const uploadPath = process.env.VUE_APP_BASE_API + '/box/realprove/positiveCardOrc'
const uploadPath2 = process.env.VUE_APP_BASE_API + '/admin/storage/create'
export { uploadPath, uploadPath2}


